const http = uni.$u.http

// post请求，获取菜单
export const postMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)

/**
 * 查询无状态订单数据
 */
export const getNoStateOrder = (data) => http.get('/sale/orderHead/noStateOrder/'+data+'/5431')

/**
 * 发货
 */
export const sendOrder =(params, config = {})  => http.post('/sale/orderHead/noStateSendOutOrder', params, config)

/**
 * 退货
 */
export const orderReturn =(params, config = {})  => http.post('/sale/orderHead/noStateIsReturn', params, config)

/**
 * 查找代理商
 */
export const findAgent = (params, config = {}) => http.post('/base/agent/list', params, config)